package nb.yan.dao.impl;

import nb.yan.dao.PraiseDao;
import nb.yan.entity.Dish;

public class ArrayPraiseDao implements PraiseDao {

	@Override
	public void modifyCountById(int dishId) {
		Dish dish = Dish.values()[dishId - 1];
		dish.getPraise().setPraiseCount(dish.getPraise().getPraiseCount() + 1);
	}

}
